<template>
    <div id="app">
        <nav-bar :msg1='msg1' :msg2='msg2' :leftarrow="leftarrow"/>
        <div class="success">
            <img src="../../assets/success.png">
            <div class='title'>提交成功</div>
            <div v-html="centertext"></div>
            <cube-button  class="successbutton" @click="closePage">关闭页面</cube-button>
        </div>
    </div>
</template>

<script>
    // import { NavBar } from 'vant'
    import NavBar from '@/components/customerService/NavBar.vue'
    import {closeBrowserPage} from '@/utils/closeBrowserPage'
    import {getQuery } from '@/utils/auth'


    export default {
        components: {
            NavBar
        },
        name: 'app',
        data(){
            return {
                msg1: '客服帮助中心',
                leftarrow:true,
                msg2: '返回',
                centertext:'<div>您的问题已提交成功，我们会尽快给您回复。</div>\n' +
                    '            <div>反馈结果请在客服中心<span>【反馈记录】</span>中查看。</div>'
            }
        },
        mounted(){
            this.query=getQuery()
            if(this.query.openProblem==='1'){
                this.centertext='审核结果会以邮件方式发送，请注意查收～'
                this.leftarrow=false
            }
        },
        methods: {
            closePage(){
                console.log(`关闭页面回到APP游戏大厅`)
                closeBrowserPage()
            }
        }
    }
</script>
